package com.twoGroup.boot.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @ClassName user
 * @Description
 * @Author
 * @Date
 * @Version 1
 **/
@TableName("t_user")
public class User {
    @JsonProperty("userId")
    private Integer userId;
    @JsonProperty("flag")
    private Integer flag;
    @JsonProperty("headImg")
    private String headImg;
    @JsonProperty("password")
    private String password;
    @JsonProperty("nickname")
    private String nickname;
    @JsonProperty("sex")
    private String sex;
    @JsonProperty("age")
    private Integer age = 0;
    @JsonProperty("telephone")
    private String telephone;
    @JsonProperty("email")
    private String email;
    @JsonProperty("address")
    private String address;
    @JsonProperty("idCard")
    private String idCard;
    @JsonProperty("rName")
    private String rName;
    //    private List<Integer> UserIds;
    public User() {
    }

    public User(Integer userId, Integer flag, String headImg, String password, String nickname, String sex, Integer age, String telephone, String email, String address, String idCard, String rName) {
        this.userId = userId;
        this.flag = flag;
        this.headImg = headImg;
        this.password = password;
        this.nickname = nickname;
        this.sex = sex;
        this.age = age;
        this.telephone = telephone;
        this.email = email;
        this.address = address;
        this.idCard = idCard;
        this.rName = rName;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getrName() {
        return rName;
    }

    public void setrName(String rName) {
        this.rName = rName;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", flag=" + flag +
                ", headImg='" + headImg + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", telephone='" + telephone + '\'' +
                ", email='" + email + '\'' +
                ", address='" + address + '\'' +
                ", idCard='" + idCard + '\'' +
                ", rName='" + rName + '\'' +
                '}';
    }
}
